package com.huang.core.util

import android.view.View

object ViewUtil {

    fun setHeight(view: View, value: Int) {
        val layoutParams = view.layoutParams
        layoutParams.height = value
        view.layoutParams = layoutParams
    }

    fun setVisible(view: Array<View>, visible: Int) {
        view.forEach {
            it.visibility = visible
        }
    }

}